package replica;

public class PlayerClientAccountTransferThread implements Runnable {

	private PlayerClient playerClient;

	private String userName;
	
	private String password;
	
	private String clientOldIpAddress;

	private String clientNewIpAddress;
	
	private String result;
	
	public PlayerClientAccountTransferThread(PlayerClient playerClient, String userName,String password, String clientOldIpAddress, String clientNewIpAddress)
	{
		this.playerClient = playerClient;
		this.userName = userName;
		this.password = password;
		this.clientOldIpAddress = clientOldIpAddress;
		this.clientNewIpAddress = clientNewIpAddress;
	}

	@Override
	public void run() {
		result = playerClient.transferAccount(userName,password, clientOldIpAddress,  clientNewIpAddress);
	}

	public String getResult(){
		return result;
	}
}
